package com.yida.gwj.api.domain;


import com.yida.common.core.annotation.Excel;
import com.yida.common.core.web.domain.BaseEntity;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 业务流程对象 common_flow
 *
 * @author lqq
 * @date 2022-12-13
 */

public class GwjConfFlow extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 流程ID
	 */
	@NotNull(groups = Update.class, message = "请选择流程")
	private Long flowId;

	/**
	 * 名称
	 */
	@Excel(name = "名称")
	@NotBlank(groups = {Save.class, Update.class}, message = "流程名称不能为空")
	private String name;

	/**
	 * 逻辑删除 0：存在,2：删除
	 */
	private String delFlag;

	/**
	 * 流程状态（0正常 1停用）
	 */
	@Excel(name = "步骤状态", readConverterExp = "0=正常,1=停用")
	@NotBlank(groups = {Save.class, Update.class}, message = "流程状态不能为空")
	private String status;


	public Long getFlowId() {
		return flowId;
	}

	public void setFlowId(Long flowId) {
		this.flowId = flowId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("GwjConfFlow{");
		sb.append("flowId=").append(flowId);
		sb.append(", name='").append(name).append('\'');
		sb.append(", delFlag='").append(delFlag).append('\'');
		sb.append(", status='").append(status).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
